
#ifndef RADIO_COUNT_TO_LEDS_H
#define RADIO_COUNT_TO_LEDS_H

#define KEY 23423424

typedef nx_struct radio_count_msg {
	nx_uint32_t payload;
	nx_uint16_t src;
	nx_uint16_t dest;
	nx_uint32_t MAC;
	nx_uint16_t seq;
	nx_uint16_t end_src;
  	nx_uint16_t end_dest;
	nx_uint8_t src_x;
	nx_uint8_t src_y;
} radio_count_msg_t;

typedef nx_struct co{
	nx_uint8_t x;
	nx_uint8_t y;
} co_t;

typedef nx_struct stored_msg{
	nx_uint32_t payload;	
	nx_uint16_t end_src;
	nx_uint16_t end_dest;
	nx_uint16_t seq;
	nx_uint8_t src_x;
	nx_uint8_t src_y;
} stored_msg_t;

typedef nx_struct routing_msg{
	nx_uint32_t payload;	
	nx_uint16_t end_src;
	nx_uint16_t end_dest;
	nx_uint16_t src;
	nx_uint16_t dest;
	nx_uint16_t seq;
} routing_msg_t;

typedef nx_struct stored_msg1{
	nx_uint32_t payload;
	nx_uint32_t time;
}stored_msg1_t;

enum {
  AM_RADIO_COUNT_MSG = 6,
};

typedef nx_struct setup_msg {

	nx_uint16_t src;
	nx_uint16_t target;
	
} setup_msg_t;

#endif
